package com.xxx.rpc.starter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
@ConditionalOnWebApplication
@EnableConfigurationProperties(RpcPorperties.class)
public class RpcAutoConfigurer {
	@Autowired
	private RpcPorperties rpcPorperties;
	@Bean
	public StarterBeanPostProcessor starterBeanPostProcessor() {
		StarterBeanPostProcessor starterBeanPostProcessor = new StarterBeanPostProcessor();
		starterBeanPostProcessor.setRpcPorperties(rpcPorperties);
		return starterBeanPostProcessor;
	}
}
